package com.ruoyi.web.controller.bigView;

import com.ruoyi.bigViw.service.IBigDataViewService;
import com.ruoyi.common.constant.QyiConstants;
import com.ruoyi.common.core.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * 医疗
 * 
 * @author yqg
 * @date 2025/1/8
 */
@Controller
@RequestMapping("/bigView/chs")
public class BigDataViewController extends BaseController
{

    @Autowired
    private IBigDataViewService bigDataViewService;

    private String prefix = "qyi/chs";

    @GetMapping("/index")
    public String chsIndex(){
        return prefix + "/chs";
    }

    @PostMapping("/bigData")
    @ResponseBody
    public Map<String, Object> bigData(){
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("weiboKey", QyiConstants.WEI_BO_HOT_API);
        Map<String, Object> mapData =  bigDataViewService.callBigViewThirdPartyApi(param);
        System.out.println(mapData);
        return mapData;
    }

}
